package com.dgut.coal.service;

import com.dgut.coal.entity.User;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: Yang
 * @Description:
 * @Date: Created in 23:28 2019/9/27
 * @Modifued BY:
 */


public interface UserService {

     User findUser(String username, String password);


     User findById(Integer id);


     List<User> findAll(int page, int size);

     List<User> findByConditions(User u);

     void saveUser(User u);

     void deleteUser(Integer id);

     void updateUser(User u);

     void updatePwd(User u);

     int userCount();

     int roleCount();
}
